package com.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ServicesDemo extends Activity{
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}

	public void startOnClick(View v){
		startService(new Intent(this, MyService.class));
	}
  
	public void stopOnClick(View v){
		stopService(new Intent(this, MyService.class));
	}

}